#include "SuperShield.h"

using namespace model;

SuperShield::SuperShield(Ship* ship, int radius, Point position, Polygon::PolygonOrigin origin)
{
	_isEnabled = false;
	this->ship = ship;
	radiusRange = radius;
	polygon.reset(PolygonFactory::instance().createCircle(position, origin, radiusRange*2, 16));
}

SuperShield::~SuperShield(void)
{
}

void SuperShield::enable(void)
{
	if (!_isEnabled)
	{
		_isEnabled = true;
		//ship->addFeature(this);
	}
}

void SuperShield::desable(void)
{
	_isEnabled = false;
}

double SuperShield::getX(void)
{
	return ship->getX();
}

double SuperShield::getY(void)
{
	return ship->getY();
}

int SuperShield::getRadiusRange(void)
{
	return radiusRange;
}